package cn.com.self.apis.member.entity;

import cn.com.selfsoft.smartcity.commons.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author liangwt
 */
@ApiModel(value = "实名认证类")
public class AuthMemberInfo extends AbstractEntity implements Serializable {

    private static final long serialVersionUID=1L;
    /**
     * 手机号码
     */
    @NotNull(message = "手机号不能为空")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp ="^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    @ApiModelProperty(value = "手机号码")
    private String phone;

    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名")
    private String realName;

    /**
     * 身份证号码
     */
    @Pattern(regexp = "^\\d{15}|\\d{18}$",message = "身份证格式有误")
    @NotNull
    @ApiModelProperty(value = "身份证号码")
    private String idCarno;
    /**
     * 身份证正面照(附件)
     */
    @NotNull
    @ApiModelProperty(value = "身份证正面照(附件)")
    private String imgIdcarFront;
    /**
     * 身份证反面照（附件）
     */
    @NotNull
    @ApiModelProperty(value = "身份证反面照（附件）")
    private String imgIdcarBack;



    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdCarno() {
        return idCarno;
    }

    public void setIdCarno(String idCarno) {
        this.idCarno = idCarno;
    }

    public String getImgIdcarFront() {
        return imgIdcarFront;
    }

    public void setImgIdcarFront(String imgIdcarFront) {
        this.imgIdcarFront = imgIdcarFront;
    }

    public String getImgIdcarBack() {
        return imgIdcarBack;
    }

    public void setImgIdcarBack(String imgIdcarBack) {
        this.imgIdcarBack = imgIdcarBack;
    }
}
